//
//  ZYSetContentView.m
//  ZYOils
//
//  Created by 段新瑞 on 2019/9/24.
//  Copyright © 2019 Mr.Xr. All rights reserved.
//

#import "ZYSetContentView.h"
#import "ZYOils-Swift.h"

@interface ZYSetContentView ()

@property (weak, nonatomic) IBOutlet UIImageView *arrowImageView1;
@property (weak, nonatomic) IBOutlet UIImageView *arrowImageView2;
@property (weak, nonatomic) IBOutlet UIImageView *arrowImageView4;

@end

@implementation ZYSetContentView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self configViews];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self configViews];
}

- (void)configViews {
    self.arrowImageView1.image = [[UIImage imageNamed:@"arrow_right_black"] changeColorWithColor:[UIColor whiteColor]];
    self.arrowImageView2.image = [[UIImage imageNamed:@"arrow_right_black"] changeColorWithColor:[UIColor whiteColor]];
    self.arrowImageView4.image = [[UIImage imageNamed:@"arrow_right_black"] changeColorWithColor:[UIColor whiteColor]];
}

- (IBAction)changeBtnClick:(id)sender {
    [self.subject sendNext:@1];
}

- (IBAction)aboultMeClick:(id)sender {
    [self.subject sendNext:@2];
}

- (IBAction)exitBtnClick:(id)sender {
    [self.subject sendNext:@3];
}

#pragma mark - Public Methods

#pragma mark - Private Methods

#pragma mark - Setter / Getter
- (RACSubject *)subject {
    if (!_subject) {
        _subject = [RACSubject subject];
    }
    return _subject;
}


@end
